#!/bin/bash

WIKIDIR=/home/httpd
BACKUPDIR=/home/backups
SEQ=`date +%Y%m%d-%H%M`

find $WIKIDIR -maxdepth 1 -name '*wiki*' | while read a; do tar -cvzf $a$SEQ.tgz $a; done
find $WIKIDIR -maxdepth 1 -name '*.tgz' | while read a; do mv -v $a $BACKUPDIR; done
